//
//  DataTableViewController.m
//  SimpletableStoryboard
//
//  Created by student on 16/3/4.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "DataTableViewController.h"

@interface DataTableViewController ()
@property (weak, nonatomic) IBOutlet UILabel *TimeLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;

@end

@implementation DataTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // Uncomment the following line to preserve selection between presentations.
    // self.clearsSelectionOnViewWillAppear = NO;
    
    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    // self.navigationItem.rightBarButtonItem = self.editButtonItem;
    
    NSDate *date = [NSDate date];
    NSDateFormatter *f = [[NSDateFormatter alloc] init];
    [f setTimeStyle:NSDateFormatterFullStyle];//日期
    [f setDateStyle:NSDateFormatterNoStyle];//时间
    self.TimeLabel.text = [f stringFromDate:date];
    [f setTimeStyle:NSDateFormatterNoStyle];//日期
    [f setDateStyle:NSDateFormatterFullStyle];//时间
    self.dateLabel.text = [f stringFromDate:date];
}




@end
